package com.juyu.miliao.authentication.dao.mysql;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.juyu.miliao.common.dataSource.tool.operate.Operate;

@Repository
public class UserCountDao {
	@Autowired
	private SqlSession sqlSession;
	
	@Operate("strategy('byUserId', #userId)")
	public int addUserCount(long userId){
		return sqlSession.insert("addUserCount", userId);
	}
	
}
